<div id="change_goods" style="margin-left:230px;">
	<form action="<{link app=b2c ctl='site_member' full='1' act='save_goods'}>" method="post" class="form-handling">
		<ul id="priceContent">
			<!--商品基础信息-->
			<input type="hidden"  name="gid" value="<{$goods.goods_id}>"/>
			<input type="hidden"  name="opt" value="<{$opt}>"/>
			<li class="form-item">
				<label for="" class="form-label" style="width:10em"> <{t}>商品名称：<{/t}></label>
				<span class="form-act"><input type="text" name="goods[name]" id="" value="<{$goods.name}>" class="x-input" style="width:200px;" readonly></span>
			</li>
<!--			<li class="form-item">
			<label for="" class="form-label" style="width:10em"><{t}>商品关键词：<{/t}></label>
				<span class="form-act"><input type="text" name="keywords" id="" value="<{$strings}>" class="x-input" style="width:200px;">  <{t}>用于筛选商品，多个关键词用半角竖线"|"分开<{/t}></span>
			</li>-->

			<!--2.商品价格维护-->
			<li>
				<label for="" class="form-label" style="width:10em"><{t}>销售价：<{/t}></label>
				<span class="form-act">
					<input type="text" name="goods[price]" id="" value="<{$goods.price}>" class="x-input"  style="width:80px;"> <{t}>元/ <{/t}>
					<{if empty($goods.unit)}><{t}>箱<{/t}><{else}><{$goods.unit}><{/if}>
				</span>
				<!--阶梯价-->
				<{if $goods.ladder.is_open=='true'}>
				<span><input type="text"  name="goods[ladder_num]" style="width:80px;" value="<{$goods.ladder.ladder_num==0 ? '' : $goods.ladder.ladder_num}>"/><span class="danwei"><{if empty($goods.unit)}><{t}>箱<{/t}><{else}><{$goods.unit}><{/if}></span><{t}>及以上<{/t}><input type="text" style="width:80px;" name="goods[ladder_price]" value="<{$goods.ladder.ladder_price==0 ?'': $goods.ladder.ladder_price}>"/><{t}>元/<{/t}><span class="danwei"><{if empty($goods.unit)}><{t}>箱<{/t}><{else}><{$goods.unit}><{/if}></span></span>
				<{/if}>
			</li>
			<li class="form-item last" style="margin-top:3em;">
				<label for="" class="form-label" style="width:10em"></label>
				<span class="form-act">
					<button type="submit" class="btn btn-caution action-confirm" rel="_request"><span><span><{t}>保存<{/t}></span></span></button>
				</span>
			</li>
		</ul>
	</form>
</div>
<script>
$('change_goods').getElement('.action-confirm').store('_ajax_config', {
	progress: function(rs) {
        var type = ['success','error'], i = type.length;
        for(;i --;) {
            var v = type[i], msg = v === 'success' ? rs[v] : rs[v];
            if(!msg) continue;
            return Message(msg, v, callback);
        }
        function callback() {
            if(rs.redirect) location.href = rs.redirect;
        }
    }
});

//选择计量单位
//$('unit').addEvent('change',function(){
//	var v = $('unit').get('value');
//	$$('.danwei').setProperty('text',v);
//});
</script>